<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body {
            background: rgb(139, 136, 136);
        }

        .contain {
            margin: 100px auto;
            width: 800px;
            height: 600px;
            position: relative;
            perspective: 1000px;
            transform-style: preserve-3d;
            /* transform: rotateX(-30deg) rotateY(-30deg); */
        }

        .contain>div {
            width: 200px;
            height: 200px;
            transform-style: preserve-3d;
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
            margin: auto;
            /* transition: 2s; */
            animation: run 4s linear infinite;
        }

        @keyframes run {
            0% {}

            /* 50% {
                transform: rotate3d(1, 1, 1, 360deg) rotateX(360deg) rotateZ(360deg);
                transform: rotate3d(1, 1, 1, 360deg);
            } */

            100% {
                /* transform: rotate3d(1, 1, 1, 360deg) rotateX(360deg) rotateZ(360deg); */
                /* transform: rotate3d(-1, -1, -1, -360deg); */
                transform: rotate3d(1, -1, 1, 360deg);
            }
        }

        .contain:hover>div {
            animation-play-state: paused;
        }

        .box {
            width: 200px;
            height: 200px;
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
            margin: auto;
            text-align: center;
            line-height: 200px;
            border-radius: 30px;
        }

        /* .box>h1 {
            font-size: 160px;
            opacity: .8;
            color: white;
        } */

        .bg1 {
            /* background: rgba(53, 63, 19, .6); */
            transform: rotateX(-90deg) translateZ(100px);
        }

        .bg2 {
            /* background: rgba(31, 149, 173, .6); */
            transform: rotateX(90deg) translateZ(100px);
        }

        .bg3 {
            /* background: rgba(248, 90, 198, .6); */
            transform: rotateY(270deg) translateZ(100px);
        }

        .bg4 {
            /* background: rgba(212, 217, 175, .6); */
            transform: rotateY(180deg) translateZ(100px);
        }

        .bg5 {
            /* background: rgba(233, 133, 133, .6); */
            transform: rotateY(90deg) translateZ(100px);
        }

        .bg6 {
            /* background: rgba(172, 224, 49, .6); */
            transform: rotateY(0deg) translateZ(100px);
        }

        .box {
            width: 200px;
            height: 200px;
            background-color: white;
            padding: 10px;
            box-sizing: border-box;
            margin: 20px;
            border-radius: 30px;
        }

        .countent {
            width: 100%;
            height: 100%;
            display: flex;
        }

        .box-yidian {
            flex-flow: column nowrap;
            justify-content: center;
            align-items: center;
        }

        .yidian {
            width: 50px;
            height: 50px;
            background-color: black;
            border-radius: 50%;
        }

        .box-erdian {
            justify-content: space-between;
        }

        .box-erdian>div:nth-child(2) {
            align-self: flex-end;
        }

        .box-sandian {
            justify-content: space-between
        }

        .box-sandian>div:nth-child(2) {
            align-self: center;
        }

        .box-sandian>div:nth-child(3) {
            align-self: end;
        }

        .box-sidian {
            flex-direction: column;
            justify-content: space-between;
        }

        .dian {
            display: flex;
            justify-content: space-between;
        }

        .box-wudian>.yidian {
            align-self: center;
        }

        .box-liudian {
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
        }

        .box-liudian .dian>.yidian {
            margin-left: 15px;
        }
    </style>
</head>

<body>
    <div class="contain">
        <div>
            <div class="box bg1">
                <div class="countent box-yidian">
                    <div class="yidian"></div>
                </div>
            </div>
            <div class="box bg2">
                <div class="countent box-erdian">
                    <div class="yidian"></div>
                    <div class="yidian"></div>
                </div>
            </div>
            <div class="box bg3">
                <div class="countent box-sandian">
                    <div class="yidian"></div>
                    <div class="yidian"></div>
                    <div class="yidian"></div>
                </div>
            </div>
            <div class="box bg4">
                <div class="countent box-sidian">
                    <div class="dian">
                        <div class="yidian"></div>
                        <div class="yidian"></div>
                    </div>
                    <div class="dian">
                        <div class="yidian"></div>
                        <div class="yidian"></div>
                    </div>
                </div>
            </div>
            <div class="box bg5">
                <div class="countent box-sidian box-wudian">
                    <div class="dian">
                        <div class="yidian"></div>
                        <div class="yidian"></div>
                    </div>
                    <div class="yidian"></div>
                    <div class="dian">
                        <div class="yidian"></div>
                        <div class="yidian"></div>
                    </div>
                </div>
            </div>
            <div class="box bg6">
                <div class="countent box-liudian">
                    <div class="dian">
                        <div class="yidian"></div>
                        <div class="yidian"></div>
                    </div>
                    <div class="dian">
                        <div class="yidian"></div>
                        <div class="yidian"></div>
                    </div>
                    <div class="dian">
                        <div class="yidian"></div>
                        <div class="yidian"></div>
                    </div>
                </div>
            </div>
        </div>

    </div>
</body>

</html>